package net.wofly.sale.order.service;

import java.util.List;

import net.wofly.sale.order.domain.OrderActivity;

public interface IOrderActivityService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	public OrderActivity save(OrderActivity entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	public void delete(OrderActivity entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	public void delete(String key);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	public OrderActivity findOne(String key);
	
	public List<OrderActivity> save(List<OrderActivity> entityList) ;
	
	List<OrderActivity> findByOrderID(String orderID);
	
	List<OrderActivity> findByOrderIDAndRelateType(String orderID, Integer relateType);

}
